local setmetatable = setmetatable
local getmetatable = getmetatable

local proto = {}

function proto.clone(p)
	p.__index = p
	return setmetatable({}, p)
end

proto.parent = getmetatable

-- Make a table into a base prototype
function proto.base(p)
	p.create = proto.clone
	return p
end

return proto